import request from '@/utils/request'

// 查询时间分析EPT履历列表
export function listHistory(query) {
  return request({
    url: '/ept/history/list',
    method: 'get',
    params: query
  })
}

// 查询时间分析EPT履历详细
export function getHistory(machineGroup) {
  return request({
    url: '/ept/history/' + machineGroup,
    method: 'get'
  })
}

// 新增时间分析EPT履历
export function addHistory(data) {
  return request({
    url: '/ept/history',
    method: 'post',
    data: data
  })
}

// 修改时间分析EPT履历
export function updateHistory(data) {
  return request({
    url: '/ept/history',
    method: 'put',
    data: data
  })
}

// 删除时间分析EPT履历
export function delHistory(machineGroup) {
  return request({
    url: '/ept/history/' + machineGroup,
    method: 'delete'
  })
}
